package com.example.demo.entity.thread;

/**
 * @Author: zcb
 * @Description:
 * @Date: 2021/10/21
 */
public class DecThread extends Thread {
    @Override
    public void run() {
        synchronized (Count.objectLock) {
            for (int n = 0; n < 100; n++) {
                Count.count -= 1;
            }
        }
    }
}
